<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>UI Design</title>
    <style type="text/css">
      :root {
        --yellow-lighter: #fdfdec;
        --yellow-light: #f8f8b4;
        --yellow: #f4f482;
        --green-lime: #bdf195;
        --green-blue: #15e6cd;
        --blue-light: #31bfda;
        --blue: #3b94b5;
        --blue-dark: #407fa3;
        --green: #206466;
        --green-dark: #004829;
      }

      body {
        background: #fff;
        font-family: "Montserrat", sans-serif;
        font-weight: 300;
        line-height: 1.1;
        background: #cfe2e8;
        overflow-x: hidden;
      }

      em {
        font-style: italic;
      }

      * {
        box-sizing: border-box;
      }

      .container {
        min-height: 100vh;
        max-width: 70rem;
        margin: auto;
        padding: 1rem 1rem 12rem;
        padding-bottom: 8rem;
        background-image: url(https://assets.codepen.io/567707/bg-popcorn.png);
        background-repeat: no-repeat;
        background-position: bottom left;
        background-size: 55%;
      }

      h1 {
        font-family: "Montserrat", sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: -0.03rem;
        line-height: 1;
        color: var(--green);
        font-size: clamp(2.5rem, 6vw, 5rem);
        margin: 2rem auto 1rem;
        width: 100%;
      }

      h1 small {
        display: none;
      }

      @media (max-width: 1024px) {
        h1 {
          text-align: center;
        }

        h1 br {
          display: none;
        }
      }

      @media (min-width: 1024px) {
        h1 {
          line-height: 0.9;
          position: relative;
        }

        h1 span {
          display: inline-block;
          margin-top: 14rem;
        }

        h1 small {
          display: block;
          position: absolute;
          font-weight: 300;
          font-size: clamp(1rem, 1.8vw, 1.3rem);
          text-transform: none;
          top: 30%;
          right: 110%;
          height: 60%;
          line-height: 1.2;
        }

        h1 small span {
          display: inline-block;
          transform: translate(0.15rem, 0.2rem);
          margin-top: 0;
          font-size: 140%;
          font-family: "Dancing Script", cursive;
        }
      }

      h4 {
        font-weight: 800;
        text-transform: uppercase;
        font-size: clamp(1.5rem, 2.5vw, 2.5rem);
        line-height: 1;
      }

      .kdrama {
        background: var(--yellow);
        color: var(--green);
      }

      .anime {
        background: var(--green-blue);
        color: var(--yellow-lighter);
      }

      .western {
        background: var(--blue-light);
        color: var(--yellow-lighter);
      }

      .box {
        padding: 1.5rem;
        margin: 1rem auto;
      }

      .box p {
        margin-top: 0.5rem;
        font-size: clamp(1rem, 1.2vw, 1rem);
      }

      @media (min-width: 700px) {
        .box {
          width: 100%;
          height: 100%;
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
        }

        .box:before {
          content: "";
          float: left;
        }
      }

      .legend {
        margin: 1.5rem auto;
        display: flex;
        flex-wrap: wrap;
      }

      .legend__item {
        margin-right: 2rem;
        min-width: 7rem;
      }

      .legend__box {
        display: inline-block;
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.5rem;
        vertical-align: middle;
      }

      .legend__box + span {
        vertical-align: middle;
        margin: 0.2rem;
      }

      @media (min-width: 700px) {
        .container {
          display: grid;
          grid-gap: 0.5rem;
          grid-template-columns: repeat(6, 1fr);
        }

        h1,
        .legend {
          grid-column: 1 / -1;
        }

        h4.break {
          word-break: break-all;
        }

        .box {
          margin: 0;
          position: relative;
        }

        .cloy {
          grid-column: 1 / 3;
          grid-row: 3 / span 2;
        }

        .inheritors {
          grid-column: 3 / 5;
          grid-row: 3 / span 2;
        }

        .foodwars {
          grid-row: 5 / span 1;
          grid-column: 1 / 5;
        }

        .foodwars:after {
          position: absolute;
          content: "";
          width: 80%;
          height: 80%;
          background: url("https://assets.codepen.io/567707/show-foodwars.jpg")
            no-repeat center center/cover;
          top: 0;
          right: 0%;
        }

        .theking {
          grid-row: 5 / span 1;
          grid-column: 5 / 7;
        }

        .mindhunter {
          grid-column: 5 / 7;
          grid-row: 6;
        }

        .mindhunter:after {
          position: absolute;
          content: "";
          width: 100%;
          height: 100%;
          background: url("https://assets.codepen.io/567707/show-mindhunter.png")
            no-repeat center center/cover;
          top: 0;
          right: 100%;
        }

        .kakegurui {
          grid-row: 3 / 7;
          grid-column: 5 / 7;
        }

        .haikyuu {
          grid-row: 6;
        }
      }

      @media (min-width: 1024px) {
        .container {
          grid-template-columns: repeat(12, 1fr);
          grid-gap: 0;
          padding-top: 4rem;
        }

        .box {
          box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12),
            0 20px 30px rgba(0, 0, 0, 0.05);
        }

        .box:before {
          padding-top: 20%;
        }

        h1 {
          grid-row: 1 / 10;
          grid-column: 1 / 2;
          writing-mode: vertical-rl;
          text-orientation: mixed;
          transform: rotate(180deg) translate(0.2rem, 4rem);
        }

        .cloy {
          grid-column: 4 / 6;
          grid-row: 2 / 4;
          width: 150%;
        }

        .cloy:after {
          position: absolute;
          content: "";
          width: 90%;
          height: 90%;
          background: url("https://assets.codepen.io/567707/show-cloy.jpg")
            no-repeat center center/cover;
          top: -40%;
          right: -30%;
          z-index: -1;
        }

        .theking {
          grid-column: 8 / 11;
          grid-row: 1 / 3;
          width: 80%;
        }

        .foodwars {
          grid-column: 3/5;
          grid-row: 4;
          width: 110%;
          transform: translate(30%, 0%);
        }

        .foodwars:after {
          content: none;
        }

        .kakegurui {
          grid-column: 7/9;
          grid-row: 3;
          width: 115%;
          transform: translate(-25%, 60%);
        }

        .mindhunter {
          grid-column: -4 / -1;
          grid-row: 3;
          width: 80%;
          transform: translate(0%, -30%);
        }

        .mindhunter:after {
          right: -100%;
          box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12),
            0 20px 30px rgba(0, 0, 0, 0.05);
        }

        .inheritors {
          grid-column: -4/-1;
          grid-row: 4;
          width: 80%;
          transform: translate(-30%, -10%);
        }

        .legend {
          grid-column: 6 / 13;
          grid-row: 5;
        }
      }

      .more-info {
        display: flex;
        align-items: center;
        background: var(--blue-dark);
        color: var(--yellow-light);
      }

      .more-info a {
        color: var(--yellow-light);
      }

      .more-info .image {
        flex: 0 0 30%;
        max-width: 10rem;
        line-height: 0;
      }

      .more-info .image img {
        width: 100%;
      }

      .more-info p {
        flex: 1;
        padding: 0 1.5rem;
      }
    </style>
    <script type="text/javascript">
      $(window).on("load resize", function (e) {
        if ($(window).width() > 700) {
          $(".box").each(function (index) {
            $(this).outerHeight($(this).outerWidth());
          });
        } else {
          $(".box").each(function (index) {
            $(this).outerHeight("auto");
          });
        }
      });
    </script>
  </head>
  <body>
    <div class="container">
      <h1>
        Netflix Binge: <br /><span>Top Stats</span
        ><small
          >When your friend recommended you that series, you
          <span>should've said no.</span></small
        >
      </h1>
      <div class="legend">
        <div class="legend__item">
          <span class="legend__box kdrama"></span><span>Korean Drama</span>
        </div>
        <div class="legend__item">
          <span class="legend__box anime"></span><span>Anime</span>
        </div>
        <div class="legend__item">
          <span class="legend__box western"></span><span>Western Series</span>
        </div>
      </div>
      <div class="box kdrama cloy">
        <h4>Crash Landing on You</h4>
        <p>16 episodes // 960 minutes in 1 day. One sitting.</p>
      </div>
      <div class="box kdrama inheritors">
        <h4 class="break">Inheritors</h4>
        <p>16 episodes // 960 minutes in 1 day. One sitting.</p>
      </div>
      <div class="box anime foodwars">
        <h4>Food Wars</h4>
        <p>85 episodes // 1700 minutes in 3 days.</p>
      </div>
      <div class="box kdrama theking">
        <h4>The King</h4>
        <p>16 episodes // 960 minutes in 2 days.</p>
      </div>
      <div class="box western mindhunter shadow">
        <h4 class="break">Mindhunter</h4>
        <p>19 episodes // 942 minutes in 3 days.</p>
      </div>
      <div class="box anime kakegurui shadow">
        <h4 class="break">Kakegurui</h4>
        <p>24 episodes // 480 minutes in 2 days.</p>
      </div>
      <!--.box.anime.haikyuu
  h4.break Haikyuu!
  p 72 episodes // 1440 minutes in 7 days.


  --></div>
    <div class="more-info">
      <div class="image">
        <img
          src="https://assets.codepen.io/567707/palette-ts.png"
          alt="Taylor Swift album"
        />
      </div>
      <p>
        Part of the
        <a href="https://codepen.io/collection/XPxJmz"
          >UI Designs inspired by Taylor Swift Album Covers</a
        >
        collection. This is <em>Taylor Swift (2006)</em>.
      </p>
    </div>
  </body>
</html>
